<template>
  <view class="my-container">
    <my-login v-if="!token || JSON.stringify(userinfo) === '{}'"></my-login>

    <my-userinfo v-else></my-userinfo>
  </view>
</template>

<script>
import mixins from '@/mixins/tabbar-icon.js'
import { mapState, mapMutations } from 'vuex'
export default {
  mixins: [mixins],
  data() {
    return {}
  },
  computed: {
    ...mapState('user', {
      token: 'token',
      userinfo: 'userinfo'
    })
  }
}
</script>

<style lang="scss"></style>
